#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>


void swapArr(int arr[],int length)
{
	int count = 0;
	for(int i=0;i<10;i++)
	{
		if (arr[i] % 2 == 1)
		{
			count++;
			int stemp = 0;
			stemp = arr[count-1];
			arr[count - 1] = arr[i];
			arr[i] = stemp;
		}
	}
}

int main()
{
	int arr[10] = { 13,14,2,9,5,3,4,8,6,10 };
	swapArr(arr,10);
	for (int i = 0; i < 10; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}

	
